<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">{:lang('WEB_SITE_INFOS')}</a></li>
        <li><a href="#B" data-toggle="tab">{:lang('SEO_SETTING')}</a></li>
        <!--<li><a href="#C" data-toggle="tab">{:lang('URL_SETTING')}</a></li>-->
        <!--<li><a href="#E" data-toggle="tab">{:lang('COMMENT_SETTING')}</a></li>-->
        <li><a href="#F" data-toggle="tab">用户注册设置</a></li>
        <li><a href="#G" data-toggle="tab">CDN设置</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/sitePost')}"
          method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label"><span
                                    class="form-required">*</span>{:lang('WEBSITE_NAME')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site-name" name="options[site_name]"
                                       value="{$site_info.site_name|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-admin_url_password" class="col-sm-2 control-label">
                                后台加密码
                                <a href="http://www.thinkcmf.com/faq.html?url=https://www.kancloud.cn/thinkcmf/faq/493509"
                                   title="查看帮助手册"
                                   data-toggle="tooltip"
                                   target="_blank"><i class="fa fa-question-circle"></i></a>
                            </label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-admin_url_password"
                                       name="admin_settings[admin_password]"
                                       value="{$admin_settings.admin_password|default=''}"
                                       id="js-site-admin-url-password">
                                <p class="help-block">英文字母数字，不能为纯数字</p>
                                <p class="help-block" style="color: red;">
                                    设置加密码后必须通过以下地址访问后台,请劳记此地址，为了安全，您也可以定期更换此加密码!</p>
                                <php>
                                    $root=cmf_get_root();
                                    $root=empty($root)?'':'/'.$root;
                                    $site_domain = cmf_get_domain().$root;
                                </php>
                                <p class="help-block">后台登录地址：<span id="js-site-admin-url">{$site_domain}/{$admin_settings.admin_password|default='admin'}</span>
                                </p>
                            </div>
                        </div>
                        <!--
                        <div class="form-group">
                            <label for="input-mobile_tpl_enabled" class="col-sm-2 control-label">{:lang('ENABLE_MOBILE_THEME')}</label>
                            <div class="col-md-6 col-sm-10">
                                <php>$mobile_tpl_enabled_checked=empty($mobile_tpl_enabled)?'':'checked';</php>
                                <div class="checkbox">
                                    <label><input type="checkbox" name="options[mobile_tpl_enabled]" value="1" id="input-mobile_tpl_enabled" {$mobile_tpl_enabled_checked}></label>
                                </div>
                            </div>
                        </div>
                        -->
                        <div class="form-group">
                            <label for="input-site_adminstyle" class="col-sm-2 control-label">{:lang('WEBSITE_ADMIN_THEME')}</label>
                            <div class="col-md-6 col-sm-10">
                                <php>
                                    $site_admin_style=empty($admin_settings['admin_style'])?'':$admin_settings['admin_style'];
                                </php>
                                <select class="form-control" name="admin_settings[admin_style]"
                                        id="input-site_adminstyle">
                                    <foreach name="admin_styles" item="vo">
                                        <php>$admin_style_selected = $site_admin_style == $vo ? "selected" : "";</php>
                                        <option value="{$vo}" {$admin_style_selected}>{$vo}</option>
                                    </foreach>
                                </select>
                            </div>
                        </div>
                        <!--
                        <div class="form-group">
                            <label for="input-html_cache_on" class="col-sm-2 control-label">{:lang('HTML_CACHE')}</label>
                            <div class="col-md-6 col-sm-10">
                                <php>$html_cache_on_checked=empty($html_cache_on)?'':'checked';</php>
                                <div class="checkbox">
                                    <label><input type="checkbox" name="options[mobile_tpl_enabled]" value="1" id="input-html_cache_on" {$html_cache_on_checked}></label>
                                </div>
                            </div>
                        </div>
                        -->
                        <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">网站公告</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_icp" name="options[site_icp]"
                                       value="{$site_info.site_icp|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">支付SDK</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_gwa" name="options[site_gwa]"
                                       value="{$site_info.site_gwa|default=''}">
                            </div>
                        </div>
                       <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">支付密匙</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-paykey" name="options[paykey]"
                                       value="{$site_info.paykey|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">最低提现金额</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_admin_email"
                                       name="options[site_admin_txjine]" value="{$site_info.site_admin_txjine|default=''}">
                            </div>
                        </div>
                      	<!--<div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">倍数提现限制(充值10提现30为3倍设置3则为不可提现)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-paybei"
                                       name="options[paybei]" value="{$site_info.paybei|default=''}">
                            </div>
                        </div>-->
                            <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">自动提现开关(0开1关)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-paybei"
                                       name="options[paybei]" value="{$site_info.paybei|default=''}">
                            </div>
                        </div>
                        
                      	<div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">最大提现额度</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-txmax"
                                       name="options[txmax]" value="{$site_info.txmax|default=''}">
                            </div>
                        </div>
                       	<div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">红包作弊(越大越好)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-paybei"
                                       name="options[hbzb]" value="{$site_info.hbzb|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">机器人发包速度(最低2)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-paybei"
                                       name="options[robotfa]" value="{$site_info.robotfa|default=''}">
                            </div>
                        </div>
                       <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">机器人抢包速度(最低2)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-paybei"
                                       name="options[robotqb]" value="{$site_info.robotqb|default=''}">
                            </div>
                        </div>
                      <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">推广域名(不能牺牲的)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-tgurl"
                                       name="options[tgurl]" value="{$site_info.tgurl|default=''}">
                            </div>
                        </div>
                      <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">游戏域名(可以牺牲)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-gameurl"
                                       name="options[gameurl]" value="{$site_info.gameurl|default=''}">
                            </div>
                        </div>
                      	 <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">推广图</label>
                            <div class="col-md-6 col-sm-10">
                                <input  type="hidden"  id="input-site_admin_tgimg"
                                       name="options[site_admin_tgimg]" value="{$site_info.site_admin_tgimg|default=''}">
                                <input style="display:none" id="input-site_admin_tgimg-name" type="text"  title="" valeu="{$site_info.site_admin_tgimg|default=''}">
                                <img id="input-site_admin_tgimg-preview" src="/upload/{$site_info.site_admin_tgimg|default=''}"  style="height:100px"> 
                                <a href="javascript:uploadOneImage('图片上传','#input-site_admin_tgimg');">上传</a>
                            </div>
                        </div>
                      <div class="form-group">
                            <label for="input-site_admin_kefu" class="col-sm-2 control-label">客服图片</label>
                            <div class="col-md-6 col-sm-10">
                              
                                <input  type="hidden"  id="input-site_admin_kfimg"
                                       name="options[site_admin_kfimg]" value="{$site_info.site_admin_kfimg|default=''}">
                              
                                <input style="display:none" id="input-site_admin_kfimg-name" type="text"  title="" valeu="{$site_info.site_admin_kfimg|default=''}">
                              
                                <img id="input-site_admin_kfimg-preview" src="/upload/{$site_info.site_admin_kfimg|default=''}"  style="height:100px"> 
                              
                                <a href="javascript:uploadOneImage('图片上传','#input-site_admin_kfimg');">上传</a>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_admin_kefu" class="col-sm-2 control-label">代理群</label>
                            <div class="col-md-6 col-sm-10">
                              
                                <input  type="hidden"  id="input-ddimg"
                                       name="options[ddimg]" value="{$site_info.ddimg|default=''}">
                              
                                <input style="display:none" id="input-ddimg-name" type="text"  title="" valeu="{$site_info.ddimg|default=''}">
                              
                                <img id="input-ddimg-preview" src="/upload/{$site_info.ddimg|default=''}"  style="height:100px"> 
                              
                                <a href="javascript:uploadOneImage('图片上传','#input-ddimg');">上传</a>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_admin_kefu" class="col-sm-2 control-label">玩法图片</label>
                            <div class="col-md-6 col-sm-10">
                              
                                <input  type="hidden"  id="input-wanfaimg"
                                       name="options[wanfaimg]" value="{$site_info.wanfaimg|default=''}">
                              
                                <input style="display:none" id="input-wanfaimg-name" type="text"  title="" valeu="{$site_info.wanfaimg|default=''}">
                              
                                <img id="input-wanfaimg-preview" src="/upload/{$site_info.wanfaimg|default=''}"  style="height:100px"> 
                              
                                <a href="javascript:uploadOneImage('图片上传','#input-wanfaimg');">上传</a>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_admin_kefu" class="col-sm-2 control-label">充值客服图片</label>
                            <div class="col-md-6 col-sm-10">
                              
                                <input  type="hidden"  id="input-czkfimg"
                                       name="options[czkfimg]" value="{$site_info.czkfimg|default=''}">
                              
                                <input style="display:none" id="input-czkfimg-name" type="text"  title="" valeu="{$site_info.czkfimg|default=''}">
                              
                                <img id="input-czkfimg-preview" src="/upload/{$site_info.czkfimg|default=''}"  style="height:100px"> 
                              
                                <a href="javascript:uploadOneImage('图片上传','#input-czkfimg');">上传</a>
                            </div>
                        </div>
                      	 <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">代理佣金</label>
                          	<div class="col-md-1 col-sm-3">
                               一级分佣
                                <input type="text" class="form-control" id="input-site_admin_yj0"
                                       name="options[site_admin_yj0]" value="{$site_info.site_admin_yj0|default=''}">
                            </div>
                           	<div class="col-md-1 col-sm-3">
                               二级分佣
                                <input type="text" class="form-control" id="input-site_admin_yj1"
                                       name="options[site_admin_yj1]" value="{$site_info.site_admin_yj1|default=''}">
                            </div>
                           <div class="col-md-1 col-sm-3">
                               三级分佣
                                <input type="text" class="form-control" id="input-site_admin_yj2"
                                       name="options[site_admin_yj2]" value="{$site_info.site_admin_yj2|default=''}">
                            </div>
                           <div class="col-md-1 col-sm-3">
                               四级分佣
                                <input type="text" class="form-control" id="input-site_admin_yj3"
                                       name="options[site_admin_yj3]" value="{$site_info.site_admin_yj3|default=''}">
                            </div>
                           <div class="col-md-1 col-sm-3">
                               五级分佣
                                <input type="text" class="form-control" id="input-site_admin_yj4"
                                       name="options[site_admin_yj4]" value="{$site_info.site_admin_yj4|default=''}">
                            </div>
                            <div class="col-md-1 col-sm-3">
                               六级分佣
                                <input type="text" class="form-control" id="input-site_admin_yj5"
                                       name="options[site_admin_yj5]" value="{$site_info.site_admin_yj5|default=''}">
                            </div>
                            <div class="col-md-1 col-sm-3">
                               七级分佣
                                <input type="text" class="form-control" id="input-site_admin_yj6"
                                       name="options[site_admin_yj6]" value="{$site_info.site_admin_yj6|default=''}">
                            </div>
                        </div>
                      <!--上面是代理佣金比例-->

                      
                      	 <div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">推广二维码位置</label>
                          	<div class="col-md-1 col-sm-3">
                               大小
                                <input type="text" class="form-control" id="input-qrsize"
                                       name="options[qrsize]" value="{$site_info.qrsize|default=''}">
                            </div>
                           	<div class="col-md-1 col-sm-3">
                               左
                                <input type="text" class="form-control" id="input-qrleft"
                                       name="options[qrleft]" value="{$site_info.qrleft|default=''}">
                            </div>
                           <div class="col-md-1 col-sm-3">
                               上
                                <input type="text" class="form-control" id="input-qrtop"
                                       name="options[qrtop]" value="{$site_info.qrtop|default=''}">
                            </div>
                          
                        </div>
                      <!--二维码-->
                      
                      	<div class="form-group">
                            <label for="input-site_admin_email" class="col-sm-2 control-label">{:lang('WEBMASTER_EMAIL')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_admin_email"
                                       name="options[site_admin_email]" value="{$site_info.site_admin_email|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_analytics" class="col-sm-2 control-label">{:lang('WEBSITE_STATISTICAL_CODE')}</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-site_analytics" name="options[site_analytics]">{$site_info.site_analytics|default=''}</textarea>
                            </div>
                        </div>
                      
                        <!--<div class="form-group">-->
                        <!--<label for="input-site_copyright" class="col-sm-2 control-label">{:lang('WEBSITE_COPYRIGHT_INFOMATION')}</label>-->
                        <!--<div class="col-md-6 col-sm-10">-->
                        <!--<input type="text" class="form-control" id="input-site_copyright" name="options[site_copyright]" value="{$site_info.site_copyright|default=''}">-->
                        <!--</div>-->
                        <!--</div>-->
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="B">
                        <div class="form-group">
                            <label for="input-site_seo_title" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_TITLE')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_seo_title"
                                       name="options[site_seo_title]" value="{$site_info.site_seo_title|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_seo_keywords" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_KEYWORDS')}</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-site_seo_keywords"
                                       name="options[site_seo_keywords]" value="{$site_info.site_seo_keywords|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_seo_description" class="col-sm-2 control-label">{:lang('WEBSITE_SEO_DESCRIPTION')}</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-site_seo_description"
                                          name="options[site_seo_description]">{$site_info.site_seo_description|default=''}</textarea>
                            </div>
                        </div>
                      
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="F">
                        <div class="form-group">
                            <label for="input-banned_usernames" class="col-sm-2 control-label">用户注册验证</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="cmf_settings[open_registration]">
                                    <option value="0">是</option>
                                    <php>
                                        $open_registration_selected = empty($cmf_settings['open_registration'])?'':'selected';
                                    </php>
                                    <option value="1" {$open_registration_selected}>否</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="display: none;">
                            <label for="input-banned_usernames" class="col-sm-2 control-label">{:lang('SPECAIL_USERNAME')}</label>
                            <div class="col-md-6 col-sm-10">
                                <textarea class="form-control" id="input-banned_usernames"
                                          name="cmf_settings[banned_usernames]">{$cmf_settings.banned_usernames}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="G">
                        <div class="form-group">
                            <label for="input-cdn_static_root" class="col-sm-2 control-label">静态资源cdn地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-cdn_static_root"
                                       name="cdn_settings[cdn_static_root]"
                                       value="{$cdn_settings.cdn_static_root|default=''}">
                                <p class="help-block">
                                    不能以/结尾；设置这个地址后，请将ThinkCMF下的静态资源文件放在其下面；<br>
                                    ThinkCMF下的静态资源文件大致包含以下(如果你自定义后，请自行增加)：<br>
                                    themes/admin_simplebootx/public/assets<br>
                                    static<br>
                                    themes/simplebootx/public/assets<br>
                                    例如未设置cdn前：jquery的访问地址是/static/js/jquery.js, <br>
                                    设置cdn是后它的访问地址就是：静态资源cdn地址/static/js/jquery.js
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
